import requestPlat from '@/common/requestPlat'
import Qs from 'qs';
import  util from "@/common/util.js"
// 基础档案page
export let pageRecord_base = (params) => {
	return requestPlat({
		method: 'get',
		url: `cargo/user/record_base/page/${params.page}/${params.limit}`,
		params
	})
}

// 基础档案list
export let listRecord_base = (params) => {
	return requestPlat({
		method: 'get',
		url: `cargo/user/record_base/list`,
		params
	})
}

// 基础档案详情
export let getRecord_base = (params) => {
	return requestPlat({
		method: 'get',
		url: `cargo/user/record_base/detail`,
		params
	})
}

// 基础档案新增
export let addRecord_base = (data) => {
	return requestPlat({
		method: 'post',
		url: `cargo/user/record_base/add`,
		headers: {
			"Content-Type": 'application/json'
		},
		data:util.fuseTeamData(data),
	})
}

// 基础档案编辑
export let editRecord_base = (data) => {
	return requestPlat({
		method: 'post',
		url: `cargo/user/record_base/edit`,
		headers: {
			"Content-Type": 'application/json'
		},
		data
	})
}

// 基础档案删除
export let delRecord_base = (params) => {
	return requestPlat({
		method: 'post',
		url: `cargo/user/record_base/del`,
		params
	})
}
// 核销后提交档案
export let pushFiles = (data) => {
	return requestPlat({
		method: 'post',
		url: `cargo/user/record_base/add`,
		headers: {
			"Content-Type": 'application/json'
		},
		data:util.fuseTeamData(data),
	})
}